package com.empire.module.sporttery.dal.mysql.football500ouzim;

import java.util.*;

import com.empire.framework.common.pojo.PageResult;
import com.empire.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.empire.framework.mybatis.core.mapper.BaseMapperX;
import com.empire.module.sporttery.dal.dataobject.football500ouzim.Football500OuzImDO;
import org.apache.ibatis.annotations.Mapper;
import com.empire.module.sporttery.controller.admin.football500ouzim.vo.*;

/**
 * 亚盘实时 Mapper
 *
 * @author 无敌仙人
 */
@Mapper
public interface Football500OuzImMapper extends BaseMapperX<Football500OuzImDO> {

    default PageResult<Football500OuzImDO> selectPage(Football500OuzImPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<Football500OuzImDO>()
                .eqIfPresent(Football500OuzImDO::getMatchId, reqVO.getMatchId())
                .eqIfPresent(Football500OuzImDO::getYpId, reqVO.getYpId())
                .likeIfPresent(Football500OuzImDO::getCompanyName, reqVO.getCompanyName())
                .eqIfPresent(Football500OuzImDO::getImHomeWater, reqVO.getImHomeWater())
                .eqIfPresent(Football500OuzImDO::getImHomeRate, reqVO.getImHomeRate())
                .eqIfPresent(Football500OuzImDO::getImHomeKaili, reqVO.getImHomeKaili())
                .eqIfPresent(Football500OuzImDO::getImDrawWater, reqVO.getImDrawWater())
                .eqIfPresent(Football500OuzImDO::getImDrawRate, reqVO.getImDrawRate())
                .eqIfPresent(Football500OuzImDO::getImDrawKaili, reqVO.getImDrawKaili())
                .eqIfPresent(Football500OuzImDO::getImAwayWater, reqVO.getImAwayWater())
                .eqIfPresent(Football500OuzImDO::getImAwayRate, reqVO.getImAwayRate())
                .eqIfPresent(Football500OuzImDO::getImAwayKaili, reqVO.getImAwayKaili())
                .eqIfPresent(Football500OuzImDO::getImBackRate, reqVO.getImBackRate())
                .eqIfPresent(Football500OuzImDO::getInitHomeWater, reqVO.getInitHomeWater())
                .eqIfPresent(Football500OuzImDO::getInitHomeRate, reqVO.getInitHomeRate())
                .eqIfPresent(Football500OuzImDO::getInitHomeKaili, reqVO.getInitHomeKaili())
                .eqIfPresent(Football500OuzImDO::getInitDrawWater, reqVO.getInitDrawWater())
                .eqIfPresent(Football500OuzImDO::getInitDrawRate, reqVO.getInitDrawRate())
                .eqIfPresent(Football500OuzImDO::getInitDrawKaili, reqVO.getInitDrawKaili())
                .eqIfPresent(Football500OuzImDO::getInitAwayWater, reqVO.getInitAwayWater())
                .eqIfPresent(Football500OuzImDO::getIsPatch, reqVO.getIsPatch())
                .eqIfPresent(Football500OuzImDO::getInitAwayRate, reqVO.getInitAwayRate())
                .eqIfPresent(Football500OuzImDO::getInitAwayKaili, reqVO.getInitAwayKaili())
                .eqIfPresent(Football500OuzImDO::getInitBackRate, reqVO.getInitBackRate())
                .betweenIfPresent(Football500OuzImDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(Football500OuzImDO::getId));
    }

}